package com.ruoyi;

import java.io.File;

public class demo {

    public static void main(String[] args) {
        File file = new File("D://abc");
        if (file.exists()){
            file.delete();
        }else {
            file.mkdirs();
        }
    }
}
